import type { PatientType } from '@/types/patient'
import { request } from '@/utils/request'
// 获取患者列表信息
export const reqGetPatientList = () => request<PatientType[]>('patient/mylist')
// 新增患者
export const reqAddPatient = (data: PatientType) =>
  request('patient/add', 'POST', data)

//更新患者信息
export const reqUpdatePatient = (data: PatientType) =>
  request('patient/update', 'PUT', data)
// 删除患者
export const reqDelPatient = (id: string) =>
  request(`patient/del/${id}`, 'DELETE')
// enum 枚举是 字面量+联合类型 的增强版

// const gender: 1 | 0 = 1
